package com.lht.admin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @描述:首页统计
 * @创建人: JaccePon
 * @创建日期: 2020年02月08日 22:32
 */
@Mapper
public interface IndexDao extends BaseMapper<HashMap> {

    int countOrderToday(@Param("params") Map<String, String> params);

    int allOrderNum();

    BigDecimal sumOrderQouta (@Param("params") Map<String, String> params);

    List<HashMap<String, Object>> productCount();

    List<HashMap<String, Object>> processCount();

    List<Map<String, Object>> orderMonthCount(@Param("monthStr")String monthStr);
}
